module.exports = (user, updateMode = false) => {
    if (updateMode) {
        return {
            nickname: user.nickname,
            avatar: user.avatar,
            sex: user.sex,
            birthday: user.birthday,
            freeze: user.freeze,
            isLTSOnline: user.isLTSOnline,
            activeValue: user.activeValue,
            rating: user.rating,
            level: user.level,
            statusDesc: user.statusDesc,
            description: user.description
        }
    }
    return {
        id: user.id,
        nickname: user.nickname,
        avatar: user.avatar,
        sex: user.sex,
        birthday: user.birthday,
        freeze: user.freeze,
        isLTSOnline: user.isLTSOnline,
        activeValue: user.activeValue,
        rating: user.rating,
        level: user.level,
        statusDesc: user.statusDesc,
        description: user.description
    };
}
// module.exports = (user) => {
//     let {
//         id, nickname, avatar, sex, birthday, freeze, isLTSOnline, activeValue, rating, level, statusDesc, description
//     } = user;
//     return { id, nickname, avatar, sex, birthday, freeze, isLTSOnline, activeValue, rating, level, statusDesc, description }
// }